package com.yonyou.wdt.exception;

public enum ApiCodeEnum {
    SUCCESS(Integer.valueOf(0), "success"),
    SIGN_ERROR(Integer.valueOf(90001), "生成签名失败"),
    EXECUTE_ERROR(Integer.valueOf(90002), "执行调用异常"),
    PARAM_ERROR(Integer.valueOf(90003), "请求参数不合法"),
    TIME_OUT_ERROR(Integer.valueOf(90004), "请求超时"),
    CONNECT_ERROR(Integer.valueOf(90005), "建立连接失败"),
    SYS_ERROR(Integer.valueOf(99999), "系统异常，请稍后再试");

    private final Integer code;

    private final String message;

    ApiCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
    }
